package com.zy.design.ocp.ns;

import com.zy.design.ocp.base.Notification;

/**
 * @author zhaoyi
 * @date 2021/3/15 17:47
 */
public abstract class AlertHandler {

    protected AlertRule2 rule;
    protected Notification notification;

    public AlertHandler(AlertRule2 rule, Notification notification) {
        this.rule = rule;
        this.notification = notification;
    }

    public abstract void check(ApiStatInfo apiStatInfo);

}
